import Vue from 'vue'
import App from './App.vue'
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';
import './assets/css/reset.css'
import http from './assets/js/http'
import configHttp from './assets/js/config-http'
import router from "./router";

Vue.use(Mint);

Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.prototype.$configHttp = configHttp


//注册自定义过滤器
Vue.filter('convTime', function(value) {
  if((value+'').length === 10){
    value = value * 1000
  }
  var data = new Date(value);
  var y = data.getFullYear();
  var m = data.getMonth()+1;
  var d = data.getDate();
  return `${y}年${m}月${d}日`
});
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
